package org.kong.service.impl;

import org.kong.entity.Emp;
import org.kong.mapper.EmpMapper;
import org.kong.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 加油
 *
 * @author konglingfeng
 * @date 2025/8/8
 * @desc
 */
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;

    @Override
    public Emp findEmpById(int empno) {
        return empMapper.findEmpById(empno);
    }

    @Override
    public List<Emp> findAllEmp() {
        return empMapper.findAllEmp();
    }

    @Override
    public boolean updateEmp(Emp emp) {
        return empMapper.updateEmp(emp);
    }

    @Override
    public boolean addEmp(Emp emp) {
        return empMapper.addEmp(emp);
    }

    @Override
    public boolean deleteEmp(int empno) {
        return empMapper.deleteEmp(empno);
    }
}
